-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guess updateinformation for GitHub Actions #13
base: main
Are you sure you want to change the base?
Conversation
#7 Compiles, but still needs to be tested for correctness.
Now it is tested for correctness:
|
* github_repository_name regardless of owner_start * Move comment above if statement
src/appimagetool.c
Outdated
if(zsyncmake_path){ | ||
char buf[1024]; | ||
// gh-releases-zsync|probono|AppImages|latest|Subsurface-*x86_64.AppImage.zsync | ||
sprintf(buf, "gh-releases-zsync|%s|%s|latest|%s*-%s.AppImage.zsync", github_repository_owner, github_repository_name, app_name_for_filename, arch); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another sprintf
.
src/appimagetool.c
Outdated
@@ -765,9 +765,9 @@ main (int argc, char *argv[]) | |||
|
|||
// if $VERSION is specified, we embed it into the filename | |||
if (version_env != NULL) { | |||
sprintf(dest_path, "%s-%s-%s.AppImage", app_name_for_filename, version_env, arch); | |||
snprintf(dest_path, "%s-%s-%s.AppImage", app_name_for_filename, version_env, arch); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, size missing.
You don't need to fix the world in such a PR. New code should be good, though. |
I have not seen any major issues any more. But I guess I should run a real world test, too. Will approve once done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work in the real world, too. Thanks. Feel free to merge.
#7
Compiles, but still needs to be tested for correctness.